{{ template "header_start" .}}
{{ template "bootstrap" .}}
{{ template "global" .}}
<link href="../static/css/index/index.css" rel="stylesheet">
<script type="text/javascript" src="../static/js/index/index.js"></script>
{{ template "header_end" .}}
{{ template "nav" . }}

<section class="container">
    <h2>This text for install tftp and nfs on ubuntu 10.04 up of besovideo com.</h2>
	<ol>
		<li><h5><a href="#install">install need software</a></h5></li>
		<li><h5><a href="#configure">configure file </a></h5></li>
		<li><h5><a href="#test">test and use </a></h5></li>
	</ol>
	<hr class="red-line" />
	<h3><a name="install">1. install need software</a></h3>
	<p>
		We need these softwares: <b>nfs-kernel-server</b>,&nbsp;<b>tftpd-hpa</b>,&nbsp;<b>tftp-hpa</b><br/>
		Install Them like this: <b>sudo apt-get install nfs-kernel-server tftpd-hpa tftp-hpa</b><br/>
		<i class="text-muted">Igore them if you have installed.</i>
	</p>
	<h3><a name="configure">2. configure file</a></h3>
	<p>
		<b>a.</b> configure <b>/etc/exports</b><br/>
		Append a line like : <b>/tftpboot&nbsp;&nbsp;&nbsp;&nbsp;192.168.*(rw,sync,fsid=0,crossmnt,no_subtree_check)</b><br />
		In fact, you can set any dir, but we all like use this, we can interact each other. And Use below.<br /><br/>
		<b>b.</b> configure <b>/etc/default/tftpd-hpa</b><br/>
		Change the configure like this: <br/>
		<b>TFTP_USERNAME="tftp"</b><br>
        <b>TFTP_DIRECTORY="/tftpboot"</b><br>
        <b>TFTP_ADDRESS="0.0.0.0:69"</b><br>
        <b>TFTP_OPTIONS="-c -s -l -p"</b><br/>
        <b>RUN_DAEMON="yes" </b><br/>
	</p>
	<h3><a name="test">3. test and use </a></h3>
	<p>
		First, use this command <b>sudo service nfs-kernel-server restart</b><br/>
		Then, use this command to test it <b>sudo exportfs</b>, here you may see of /etc/exports configure result.<br>
		The last is tftp, take this command <b>sudo service tftpd-hpa restart</b>, you will see a start tips<br/>
	</p>
	<hr class="red-line" />
	<p>
		If you want test tftp yourself, you can <b>tftp <i>your-addr</i></b>, then use <b>put <i>file</i></b> and <b>get <i>file</i></b> test the result.<br/>
		You can use tftp for you embedded device now if everything OK.<br/>
		<i class="text-muted">Other way, of course, you can use other way to install tftp. This is just for new ubuntu quickly way.</i><br/>
	</p>
</section>

{{ template "footer" .}}